/* 博客详情页容器 */
.post-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

/* 左侧主内容区 */
.post-main {
    flex: 3;
}

/* 右侧边栏 */
.post-sidebar {
    flex: 1;
}

/* 文章头部信息 */
.post-header {
    margin-bottom: 40px;
}

.post-author-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(108, 92, 231, 0.3);
    margin-right: 20px;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 22px;
    font-weight: bold;
    color: #00cec9;
    margin-bottom: 5px;
}

.author-bio {
    color: #b2bec3;
    margin-bottom: 10px;
}

.post-publish-info {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #b2bec3;
}

.post-publish-info i {
    margin-right: 5px;
    color: #6c5ce7;
}

.post-featured-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-featured-image:hover img {
    transform: scale(1.02);
}

/* 文章内容样式 */
.post-body {
    font-size: 18px;
    line-height: 1.8;
    color: #e1e1e1;
}

.post-body p {
    margin-bottom: 25px;
}

.post-body h3 {
    font-size: 24px;
    margin: 40px 0 20px;
    color: #00cec9;
    position: relative;
    padding-bottom: 10px;
}

.post-body h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #6c5ce7;
}

.post-body ul {
    margin: 20px 0 30px 40px;
}

.post-body li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.post-body li::before {
    content: '•';
    position: absolute;
    left: -20px;
    color: #ff7675;
    font-size: 20px;
}

.post-image-captioned {
    margin: 30px 0;
    text-align: center;
}

.post-image-captioned img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.image-caption {
    font-size: 14px;
    color: #b2bec3;
    font-style: italic;
}

/* 文章标签 */
.post-tags-detail {
    margin: 40px 0;
    padding: 20px;
    background: rgba(24, 25, 31, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.post-tags-detail span {
    color: #b2bec3;
    font-weight: 500;
}

.post-tags-detail .tag {
    margin-bottom: 0;
}

/* 分享按钮 */
.post-share {
    margin: 30px 0 50px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.post-share span {
    color: #b2bec3;
    font-weight: 500;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 5px;
}

.share-btn.weixin {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.share-btn.weixin:hover {
    background: rgba(76, 175, 80, 0.3);
}

.share-btn.qq {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.share-btn.qq:hover {
    background: rgba(52, 152, 219, 0.3);
}

.share-btn.weibo {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.share-btn.weibo:hover {
    background: rgba(231, 76, 60, 0.3);
}

.share-btn.link {
    background: rgba(108, 92, 231, 0.2);
    color: #6c5ce7;
    border: 1px solid rgba(108, 92, 231, 0.3);
}

.share-btn.link:hover {
    background: rgba(108, 92, 231, 0.3);
}

/* 上下篇导航 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 40px 0;
}

.prev-post, .next-post {
    flex: 1;
}

.prev-post {
    text-align: left;
}

.next-post {
    text-align: right;
}

.post-navigation a {
    color: #b2bec3;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.prev-post a {
    justify-content: flex-start;
    gap: 10px;
}

.next-post a {
    justify-content: flex-end;
    gap: 10px;
}

.post-navigation a:hover {
    color: #00cec9;
}

.post-navigation i {
    font-size: 20px;
}

/* 评论区样式 */
.post-comments {
    margin-top: 60px;
    background: linear-gradient(145deg, rgba(24, 25, 31, 0.8), rgba(15, 16, 20, 0.9));
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.post-comments h3 {
    font-size: 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.post-comments h3 span {
    font-size: 16px;
    background: rgba(108, 92, 231, 0.2);
    color: #6c5ce7;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 10px;
    font-weight: normal;
}

.comment-form {
    margin-bottom: 40px;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(15, 16, 20, 0.7);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 8px;
    padding: 15px;
    color: #f1f1f1;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #00cec9;
    box-shadow: 0 0 0 2px rgba(0, 206, 201, 0.2);
}

.submit-comment {
    background: linear-gradient(45deg, #6c5ce7, #00cec9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-comment:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.comments-list {
    margin-bottom: 30px;
}

.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: #f1f1f1;
}

.author-badge {
    font-size: 12px;
    background: rgba(0, 206, 201, 0.2);
    color: #00cec9;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.comment-time {
    font-size: 14px;
    color: #b2bec3;
}

.comment-text {
    color: #e1e1e1;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 20px;
}

.comment-actions a {
    color: #b2bec3;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.comment-actions a:hover {
    color: #00cec9;
}

.comment-reply {
    margin-left: 65px;
    padding: 20px 0 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

.load-more-comments {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(108, 92, 231, 0.3);
    color: #6c5ce7;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.load-more-comments:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: #6c5ce7;
}

/* 侧边栏样式 */
.sidebar-card {
    background: linear-gradient(145deg, rgba(24, 25, 31, 0.8), rgba(15, 16, 20, 0.9));
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.sidebar-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #00cec9;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #ff7675;
}

/* 作者卡片 */
.sidebar-author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border: 3px solid rgba(108, 92, 231, 0.3);
}

.sidebar-author-name {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.sidebar-author-bio {
    color: #b2bec3;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.6;
}

.follow-author {
    display: block;
    width: 100%;
    text-align: center;
    background: rgba(108, 92, 231, 0.2);
    color: #6c5ce7;
    border: 1px solid rgba(108, 92, 231, 0.3);
    padding: 10px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.follow-author:hover {
    background: rgba(108, 92, 231, 0.3);
    color: white;
}

.author-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 22px;
    font-weight: bold;
    color: #00cec9;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #b2bec3;
}

/* 相关文章 */
.related-posts {
    padding-bottom: 10px;
}

.related-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.related-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-post-img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-post-info {
    flex: 1;
}

.related-post-title {
    color: #f1f1f1;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.related-post-title:hover {
    color: #00cec9;
}

.related-post-date {
    font-size: 12px;
    color: #b2bec3;
}

/* 热门标签 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background: rgba(108, 92, 231, 0.1);
    color: #b2bec3;
    border: 1px solid rgba(108, 92, 231, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: rgba(108, 92, 231, 0.2);
    color: #00cec9;
    border-color: #6c5ce7;
}

/* 订阅卡片 */
.subscribe-card p {
    color: #b2bec3;
    margin-bottom: 20px;
    font-size: 14px;
}

.subscribe-email {
    width: 100%;
    background: rgba(15, 16, 20, 0.7);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    color: #f1f1f1;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.subscribe-email:focus {
    outline: none;
    border-color: #00cec9;
}

.subscribe-btn {
    width: 100%;
    background: linear-gradient(45deg, #ff7675, #6c5ce7);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.subscribe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 118, 117, 0.3);
}

.subscribe-note {
    font-size: 12px !important;
    color: #b2bec3;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .post-detail-container {
        flex-direction: column;
    }

    .post-sidebar {
        margin-top: 40px;
    }

    .post-card {
        width: 48%;
    }
}

@media (max-width: 768px) {
    .post-card {
        width: 100%;
        margin: 10px 0;
    }

    .footer-section {
        width: 100%;
        margin-bottom: 30px;
        float: none;
    }

    .nav-links {
        display: none;
    }

    .post-author-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .post-publish-info {
        flex-wrap: wrap;
    }

    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .prev-post, .next-post {
        text-align: left;
    }

    .next-post a {
        justify-content: flex-start;
    }
}
